package com.jack006.pojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "stock_news")
public class StockNews {
    @Id
    private Integer id;

    /**
     * 股票名称
     */
    private String title;

    /**
     * 股票代码
     */
    private String content;

    /**
     * 删除标记，默认1，删除是时间戳
     */
    @Column(name = "del_flag")
    private Integer delFlag;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 新闻类型
     */
    @Column(name = "news_type")
    private String newsType;

    /**
     * 层级
     */
    private String level;

    /**
     * 热度
     */
    @Column(name = "hot_num")
    private Integer hotNum;

    /**
     * 涉及股票
     */
    @Column(name = "related_stocks")
    private String relatedStocks;

    /**
     * 发布时间
     */
    @Column(name = "publish_time")
    private Date publishTime;


    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取股票名称
     *
     * @return title - 股票名称
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置股票名称
     *
     * @param title 股票名称
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取股票代码
     *
     * @return content - 股票代码
     */
    public String getContent() {
        return content;
    }

    /**
     * 设置股票代码
     *
     * @param content 股票代码
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 获取删除标记，默认1，删除是时间戳
     *
     * @return del_flag - 删除标记，默认1，删除是时间戳
     */
    public Integer getDelFlag() {
        return delFlag;
    }

    /**
     * 设置删除标记，默认1，删除是时间戳
     *
     * @param delFlag 删除标记，默认1，删除是时间戳
     */
    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    /**
     * 获取创建时间
     *
     * @return create_time - 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    /**
     * 获取层级
     *
     * @return level - 层级
     */
    public String getLevel() {
        return level;
    }

    /**
     * 设置层级
     *
     * @param level 层级
     */
    public void setLevel(String level) {
        this.level = level;
    }


    public String getNewsType() {
        return newsType;
    }

    public void setNewsType(String newsType) {
        this.newsType = newsType;
    }

    public Integer getHotNum() {
        return hotNum;
    }

    public void setHotNum(Integer hotNum) {
        this.hotNum = hotNum;
    }

    public String getRelatedStocks() {
        return relatedStocks;
    }

    public void setRelatedStocks(String relatedStocks) {
        this.relatedStocks = relatedStocks;
    }
}